package com.ym.elk.controller;
import com.ym.elk.service.TestService;
import com.ym.utils.restful.AjaxJson;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
/**
 * @version v1.0
 * @ProjectName: SpringCloud-Alibaba-YM
 * @ClassName: TestController
 * @Description: TODO
 * @Author: 晨曦
 * @Date: 2020-12-16 14:04
 */


@Api(value = "/TestController", tags = {"测试ELK"})
@RestController
@RequestMapping("/TestController")
public class TestController {
    @Autowired
    private TestService testService;

    @ApiOperation(value = "测试方法一", notes = "描述：测试单元方法返回固定值", httpMethod = "POST")
    @RequestMapping(value = "/1", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public AjaxJson selectAll() {
        AjaxJson ajaxJson = new AjaxJson();
        return ajaxJson.Success();
    }
}
